import React, { Component } from 'react'
import {Switch, Route, Redirect} from 'react-router-dom'
import Home from './home/Home'
import UserList from './user-manage/UserList'
import RouteList from './right-manage/RoleList'
import RightList from './right-manage/Right.list'
import NotPermission from ''
export default class NewsSandBox extends Component {
  render() {
    return (
      <div>
        123
        <Switch>
          <Route path='/home' component={Home}></Route>
          <Route path='/user-manage/list' component={UserList}></Route>
          <Route path='/right-manage/route/list' component={RouteList}></Route>
          <Route path='/right-manage/right/list' component={RightList}></Route>
          <Redirect from ="/" to="/home" exact></Redirect>
          <Route path="*" component={NotPermission}></Route>
        </Switch>
      </div>
    )
  }
}
